package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysUserBalanceCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysUserBalanceCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUbalanceidIsNull() {
            addCriterion("UBalanceId is null");
            return (Criteria) this;
        }

        public Criteria andUbalanceidIsNotNull() {
            addCriterion("UBalanceId is not null");
            return (Criteria) this;
        }

        public Criteria andUbalanceidEqualTo(Long value) {
            addCriterion("UBalanceId =", value, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidNotEqualTo(Long value) {
            addCriterion("UBalanceId <>", value, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidGreaterThan(Long value) {
            addCriterion("UBalanceId >", value, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidGreaterThanOrEqualTo(Long value) {
            addCriterion("UBalanceId >=", value, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidLessThan(Long value) {
            addCriterion("UBalanceId <", value, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidLessThanOrEqualTo(Long value) {
            addCriterion("UBalanceId <=", value, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidIn(List<Long> values) {
            addCriterion("UBalanceId in", values, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidNotIn(List<Long> values) {
            addCriterion("UBalanceId not in", values, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidBetween(Long value1, Long value2) {
            addCriterion("UBalanceId between", value1, value2, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUbalanceidNotBetween(Long value1, Long value2) {
            addCriterion("UBalanceId not between", value1, value2, "ubalanceid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("UserID is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("UserID is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("UserID =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("UserID <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("UserID >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("UserID >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("UserID <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("UserID <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("UserID in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("UserID not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("UserID between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("UserID not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyIsNull() {
            addCriterion("TotalMoney is null");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyIsNotNull() {
            addCriterion("TotalMoney is not null");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyEqualTo(Long value) {
            addCriterion("TotalMoney =", value, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyNotEqualTo(Long value) {
            addCriterion("TotalMoney <>", value, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyGreaterThan(Long value) {
            addCriterion("TotalMoney >", value, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("TotalMoney >=", value, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyLessThan(Long value) {
            addCriterion("TotalMoney <", value, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyLessThanOrEqualTo(Long value) {
            addCriterion("TotalMoney <=", value, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyIn(List<Long> values) {
            addCriterion("TotalMoney in", values, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyNotIn(List<Long> values) {
            addCriterion("TotalMoney not in", values, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyBetween(Long value1, Long value2) {
            addCriterion("TotalMoney between", value1, value2, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andTotalmoneyNotBetween(Long value1, Long value2) {
            addCriterion("TotalMoney not between", value1, value2, "totalmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyIsNull() {
            addCriterion("CurrentMoney is null");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyIsNotNull() {
            addCriterion("CurrentMoney is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyEqualTo(Long value) {
            addCriterion("CurrentMoney =", value, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyNotEqualTo(Long value) {
            addCriterion("CurrentMoney <>", value, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyGreaterThan(Long value) {
            addCriterion("CurrentMoney >", value, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("CurrentMoney >=", value, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyLessThan(Long value) {
            addCriterion("CurrentMoney <", value, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyLessThanOrEqualTo(Long value) {
            addCriterion("CurrentMoney <=", value, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyIn(List<Long> values) {
            addCriterion("CurrentMoney in", values, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyNotIn(List<Long> values) {
            addCriterion("CurrentMoney not in", values, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyBetween(Long value1, Long value2) {
            addCriterion("CurrentMoney between", value1, value2, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andCurrentmoneyNotBetween(Long value1, Long value2) {
            addCriterion("CurrentMoney not between", value1, value2, "currentmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyIsNull() {
            addCriterion("lostMoney is null");
            return (Criteria) this;
        }

        public Criteria andLostmoneyIsNotNull() {
            addCriterion("lostMoney is not null");
            return (Criteria) this;
        }

        public Criteria andLostmoneyEqualTo(Long value) {
            addCriterion("lostMoney =", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyNotEqualTo(Long value) {
            addCriterion("lostMoney <>", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyGreaterThan(Long value) {
            addCriterion("lostMoney >", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("lostMoney >=", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyLessThan(Long value) {
            addCriterion("lostMoney <", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyLessThanOrEqualTo(Long value) {
            addCriterion("lostMoney <=", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyIn(List<Long> values) {
            addCriterion("lostMoney in", values, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyNotIn(List<Long> values) {
            addCriterion("lostMoney not in", values, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyBetween(Long value1, Long value2) {
            addCriterion("lostMoney between", value1, value2, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyNotBetween(Long value1, Long value2) {
            addCriterion("lostMoney not between", value1, value2, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andRemartIsNull() {
            addCriterion("remart is null");
            return (Criteria) this;
        }

        public Criteria andRemartIsNotNull() {
            addCriterion("remart is not null");
            return (Criteria) this;
        }

        public Criteria andRemartEqualTo(Long value) {
            addCriterion("remart =", value, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartNotEqualTo(Long value) {
            addCriterion("remart <>", value, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartGreaterThan(Long value) {
            addCriterion("remart >", value, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartGreaterThanOrEqualTo(Long value) {
            addCriterion("remart >=", value, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartLessThan(Long value) {
            addCriterion("remart <", value, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartLessThanOrEqualTo(Long value) {
            addCriterion("remart <=", value, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartIn(List<Long> values) {
            addCriterion("remart in", values, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartNotIn(List<Long> values) {
            addCriterion("remart not in", values, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartBetween(Long value1, Long value2) {
            addCriterion("remart between", value1, value2, "remart");
            return (Criteria) this;
        }

        public Criteria andRemartNotBetween(Long value1, Long value2) {
            addCriterion("remart not between", value1, value2, "remart");
            return (Criteria) this;
        }

        public Criteria andOthermoney1IsNull() {
            addCriterion("otherMoney1 is null");
            return (Criteria) this;
        }

        public Criteria andOthermoney1IsNotNull() {
            addCriterion("otherMoney1 is not null");
            return (Criteria) this;
        }

        public Criteria andOthermoney1EqualTo(Long value) {
            addCriterion("otherMoney1 =", value, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1NotEqualTo(Long value) {
            addCriterion("otherMoney1 <>", value, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1GreaterThan(Long value) {
            addCriterion("otherMoney1 >", value, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1GreaterThanOrEqualTo(Long value) {
            addCriterion("otherMoney1 >=", value, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1LessThan(Long value) {
            addCriterion("otherMoney1 <", value, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1LessThanOrEqualTo(Long value) {
            addCriterion("otherMoney1 <=", value, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1In(List<Long> values) {
            addCriterion("otherMoney1 in", values, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1NotIn(List<Long> values) {
            addCriterion("otherMoney1 not in", values, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1Between(Long value1, Long value2) {
            addCriterion("otherMoney1 between", value1, value2, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney1NotBetween(Long value1, Long value2) {
            addCriterion("otherMoney1 not between", value1, value2, "othermoney1");
            return (Criteria) this;
        }

        public Criteria andOthermoney2IsNull() {
            addCriterion("otherMoney2 is null");
            return (Criteria) this;
        }

        public Criteria andOthermoney2IsNotNull() {
            addCriterion("otherMoney2 is not null");
            return (Criteria) this;
        }

        public Criteria andOthermoney2EqualTo(Long value) {
            addCriterion("otherMoney2 =", value, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2NotEqualTo(Long value) {
            addCriterion("otherMoney2 <>", value, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2GreaterThan(Long value) {
            addCriterion("otherMoney2 >", value, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2GreaterThanOrEqualTo(Long value) {
            addCriterion("otherMoney2 >=", value, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2LessThan(Long value) {
            addCriterion("otherMoney2 <", value, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2LessThanOrEqualTo(Long value) {
            addCriterion("otherMoney2 <=", value, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2In(List<Long> values) {
            addCriterion("otherMoney2 in", values, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2NotIn(List<Long> values) {
            addCriterion("otherMoney2 not in", values, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2Between(Long value1, Long value2) {
            addCriterion("otherMoney2 between", value1, value2, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andOthermoney2NotBetween(Long value1, Long value2) {
            addCriterion("otherMoney2 not between", value1, value2, "othermoney2");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}